<?php

class service_l_cart {

    public static function get_cart() {
        $cart = NULL;
        if (is_user_logged_in ()) {
            $cart = new user_cart_l_cart(get_logged_user());
        } else {
            $cart = session_cart_l_cart::i();
        }
        return $cart;
    }

    public static function clear_cart(){
        $cart = service_l_cart::get_cart();
        $cart->remove_all();
        return $cart;
    }

    

}

?>